﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucSanPhamMoi.ascx.cs"
    Inherits="SES.CMS.Module.ucSanPhamMoi" %>
<div class="sanPham-box">
    <h3>
        Sản phẩm mới</h3>
    <ul class="sanPhamMoi">
        <asp:Repeater runat="server" ID="rptSanPhamMoi">
            <ItemTemplate>
                <li><a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                    <img src='/Media/<%#Eval("HinhAnh")%>' title='<%#Eval("TenSanPham")%>' alt='<%#Eval("TenSanPham")%>'
                        class="bear" />
                    <p class="pSanPham">
                        <span class="spanTenSanPham">
                            <%#Eval("TenSanPham")%>
                        </span>
                    </p>
                    <p class="pSanPham">
                        <span class="spanDonGia">
                            <%#(bool)(Int64.Parse(Eval("DonGia").ToString()) == 0) ? "Liên hệ" : Eval("DonGia", "{0:0,0} đ")%>
                        </span>
                    </p>
                </a></li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</div>
